#ifndef MYPUSHBUTTON_H
#define MYPUSHBUTTON_H

#include <QPushButton>

class MyPushButton : public QPushButton
{
    Q_OBJECT
public:
    //explicit myPushButton(QWidget *parent = 0);
    //正常显示的图片 按下后显示的图片
    MyPushButton(QString normalImg,QString pressImg = "");

    //保存正常显示和按下后显示的图片 路径
    QString normalImgPath;
    QString pressedImgPath;

    //按钮弹跳特效
    void zoom1();//向下跳
    void zoom2();//向上跳

    //鼠标事件
    void mousePressEvent(QMouseEvent *e);
    void mouseReleaseEvent(QMouseEvent *e);

signals:

public slots:
};

#endif // MYPUSHBUTTON_H
